package day01;

/**
 * @author Jetwang
 * @version 1.0
 * @since 2023/3/12 12:19
 */
public class ArrayStackTest {
    public static void main(String[] args) {
        ArrayStack<Object> stack = new ArrayStack<>(3);
        stack.push(1);
        stack.push(2);
        stack.push(3);
        stack.forEach(System.out::println);
        System.out.println("=====");
        System.out.println(stack.pop());
        System.out.println(stack.pop());
        System.out.println(stack.pop());
        System.out.println(stack.pop());
    }
}
